<!doctype html>
<html lang="{$lang}">
<head>
    <title>{$title}</title>
    <script>
        window._VBEN_ADMIN_PRO_APP_CONF_ = {
            VITE_GLOB_API_URL: '{$apiUrl}'
        };
        Object.freeze(window._VBEN_ADMIN_PRO_APP_CONF_);
        Object.defineProperty(window, '_VBEN_ADMIN_PRO_APP_CONF_', { configurable: false, writable: false });
        window.appConfig = {$appConfig};
    </script>
    {$head}
    <script type='module'>
        window.admin = window.initApp(window.appConfig);
        window.admin.provide('globals', {$globals});
    </script>
</head>
<body>
<div id="{$appId}"></div>
<script type='module'>
    window.admin.render('#{$appId}')
</script>
</body>
</html>
